<template>
    <el-dialog title="编辑" width="30%" :visible.sync="isShowEdit" :show-close=false>
        {{ selPeople.name }}
        {{ selPeople.phone }}
        <el-form v-model="selPeople" label="80px">
            <el-form-item prop="name" label="姓名">
                <el-input v-model="selPeople.name"></el-input>
            </el-form-item>
            <el-form-item prop="phone" label="电话">
                <el-input v-model="selPeople.phone"></el-input>
            </el-form-item>
        </el-form>
        <span slot="footer">
            <el-button @click="handleClose">关闭</el-button>
        </span>
    </el-dialog>

</template>

<script>
export default {
    name:'editDialog',
    props: {
        isShowEdit: Boolean,
        skipData: Object
    },
    data () {
        return {
            visible: false,
            selPeople: {
                name: '',
                phone: ''
            }
        }
    },
    methods: {
        handleClose () {
            this.$emit('close');
        }
    },
    mounted () {
        this.selPeople = JSON.parse(JSON.stringify(this.skipData));
        console.log(this.skipData,'23232')
    }
}
</script>

<style lang="scss" scoped>

</style>